package interview.midlinkedlist;

public class MidLinkedList {
	public int middle(int[] list) {
		int oneStep = -1;
		int twoSteps = -1;
		while(twoSteps < list.length - 1) {
			twoSteps += 2;
			oneStep++;
		}

		return oneStep;
	}
}
